﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="FileUpload.aspx.cs" Inherits="BookExchange.FileUpload" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">

    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
    <script>
        function finished() {
            location.reload();
        }

    </script>


    <asp:AsyncFileUpload ID="AsyncFileUpload1" runat="server"  OnUploadedComplete="AsyncFileUpload1_UploadedComplete" 
        UploaderStyle="Modern" BorderStyle="Solid" Height="50px" OnClientUploadComplete="finished"/>

    <h1 id="txtFilename" runat="server" ></h1>
    
    <asp:Repeater ID="Repeater1" runat="server">
        <ItemTemplate>
            <p>
                <a href='<%#Eval("DownloadUrl")%>' style="font-size: medium; width: 300px"><%#Eval("Name")%></a>
                <text style="width:100px"><%# Eval("Date") %></text>
            </p>
        </ItemTemplate>
    </asp:Repeater>


</asp:Content>
